package com.tech.connect.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

import com.tech.connect.R;

public class EditActivity extends BaseActivity {

    private EditText etContent;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getHeadBar().setRightText("完成", new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                String trim = etContent.getText().toString().trim();
                if (isEmpty(trim)) {
                    showToast("请输入内容");
                    return;
                }
            }
        });
        setContentView(R.layout.activity_edit_text);
        initView();
        loadData();
    }

    private void initView() {
        etContent = findViewById(R.id.etContent);
    }

    private void loadData() {

    }
}